]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/util: Don't compile in unused code when !HAVE_SYSTEMD
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Mon, 25 Jan 2021 09:01:29 +0000 (17:01 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Mon, 25 Jan 2021 09:09:21 +0000 (17:09 +0800)
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3620
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1588>

src/shell-util.c

index 37b0cfaf237ca80d34dd58b23006ace616a34e62..ab8046a5a805e44406190808f8cf2e667447ba17 100644 (file)
@@ -570,6 +570,7 @@ shell_util_get_uid (void)
   return getuid ();
 }
 
+#ifdef HAVE_SYSTEMD
 typedef struct {
   GDBusConnection *connection;
   gchar           *command;
@@ -692,6 +693,7 @@ on_systemd_job_removed_cb (GDBusConnection *connection,
 
   g_object_unref (task);
 }
+#endif /* HAVE_SYSTEMD */
 
 static void
 shell_util_systemd_call (const char           *command,